//
//  FirmwareService.h
//  CoolTennisBall
//
//  Created by CA on 16/5/23.
//  Copyright © 2016年 CoolLang. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^BeginUpdateFirmwareBlock)();
typedef void(^CheckFirmwareVersionCompletionBlock)();

typedef NS_ENUM(NSUInteger, FirmwareAlertType) {
    FirmwareAlertTypeHomePage,
    FirmwareAlertTypeNormal
};

@interface FirmwareService : NSObject

- (void)performRequestFirmwave:(FirmwareAlertType)alertType beginUpdateFirmwareBlock:(BeginUpdateFirmwareBlock)block checkVersionCompletionBlock:(CheckFirmwareVersionCompletionBlock)checkVersionBlock;

+ (instancetype)sharedInstance;

@end
